import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";


//获取通知列表
export function listNoticeDetail(query) {
  return request({
    url: '/notice/list',
    method: 'get',
    params: query
  })
}

// 查询通知详情
export function getNotice(noticeId) {
  return request({
    url: '/notice/' + noticeId,
    method: 'get'
  })
}


//新增通知公告
export function addNotice(data) {
  return request({
    url: '/notice',
    method: 'post',
    data: data
  })
}

// 修改公告
export function updateNotice(data) {
  return request({
    url: '/notice',
    method: 'put',
    data: data
  })
}

// 删除公告
export function delNotice(noticeId) {
  return request({
    url: '/notice/' + noticeId,
    method: 'delete'
  })
}
